

def sort_select(li):
    for i in range(len(li)-1):
        min_loc = i
        for j in range(i+1,len(li)):
            if li[j] <li[min_loc]:
                min_loc = j
        if min_loc != i:
            li[min_loc], li[i] = li[i], li[min_loc]


li = [0,5,2,3,9,7,4]
print(li)
sort_select(li)
print(li)

